@model WorkFlowCore.BusinessDemo.Web.Models.OfficialSealApplicationViewModel

<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<input type="hidden" asp-for="Id" />
<input type="hidden" asp-for="WorkTaskId" />

<div class="form-group row mb-3">
    <label asp-for="ApplicantName" class="col-sm-2 col-form-label"></label>
    <div class="col-sm-10">
        <input asp-for="ApplicantName" class="form-control" />
        <span asp-validation-for="ApplicantName" class="text-danger"></span>
    </div>
</div>

<div class="form-group row mb-3">
    <label asp-for="ApplicantDepartment" class="col-sm-2 col-form-label"></label>
    <div class="col-sm-10">
        <input asp-for="ApplicantDepartment" class="form-control" />
        <span asp-validation-for="ApplicantDepartment" class="text-danger"></span>
    </div>
</div>

<div class="form-group row mb-3">
    <label asp-for="ApplicationDate" class="col-sm-2 col-form-label"></label>
    <div class="col-sm-10">
        <input asp-for="ApplicationDate" class="form-control" type="date" />
        <span asp-validation-for="ApplicationDate" class="text-danger"></span>
    </div>
</div>

<div class="form-group row mb-3">
    <label asp-for="SealType" class="col-sm-2 col-form-label"></label>
    <div class="col-sm-10">
        <input asp-for="SealType" class="form-control" />
        <span asp-validation-for="SealType" class="text-danger"></span>
        <small class="form-text text-muted">例如："合同章", "财务章", "法人章"</small>
    </div>
</div>

<div class="form-group row mb-3">
    <label asp-for="Reason" class="col-sm-2 col-form-label"></label>
    <div class="col-sm-10">
        <textarea asp-for="Reason" class="form-control" rows="3"></textarea>
        <span asp-validation-for="Reason" class="text-danger"></span>
    </div>
</div>

<div class="form-group row mb-3">
    <label asp-for="UsageStartDate" class="col-sm-2 col-form-label"></label>
    <div class="col-sm-10">
        <input asp-for="UsageStartDate" class="form-control" type="date" />
        <span asp-validation-for="UsageStartDate" class="text-danger"></span>
    </div>
</div>

<div class="form-group row mb-3">
    <label asp-for="UsageEndDate" class="col-sm-2 col-form-label"></label>
    <div class="col-sm-10">
        <input asp-for="UsageEndDate" class="form-control" type="date" />
        <span asp-validation-for="UsageEndDate" class="text-danger"></span>
    </div>
</div>

<div class="form-group row mb-3">
    <label asp-for="Quantity" class="col-sm-2 col-form-label"></label>
    <div class="col-sm-10">
        <input asp-for="Quantity" class="form-control" type="number" />
        <span asp-validation-for="Quantity" class="text-danger"></span>
    </div>
</div>

<div class="form-group row mb-3">
    <label asp-for="AttachedFilesInfo" class="col-sm-2 col-form-label"></label>
    <div class="col-sm-10">
        <textarea asp-for="AttachedFilesInfo" class="form-control" rows="2"></textarea>
        <span asp-validation-for="AttachedFilesInfo" class="text-danger"></span>
        <small class="form-text text-muted">附件信息，例如JSON存储文件名和路径 (可选)</small>
    </div>
</div>

@section Scripts {
    @{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}
